package cn.aixuegao.common.result;

/**
 * 返回信息的枚举类，提供返回的信息的返回码和返回信息
 * @author hxy
 * @date 2018/3/22
 */
public enum ResultMsg {
	/**操作成功*/
	SUCCESS("000000", "操作成功"),
	/**操作失败*/
	FAILED("999999","操作失败"),
	/**参数错误*/
	ParamError("000001", "参数错误"),
	/**重置密码*/
	RESETPWD("000002", "重置密码"),
	/**账号被停用*/
	ACCOUNT_STOPED("000003","账号被停用"),
	/**账号未注册*/
	UNREGISTERED("000005","账号未注册"),
	/**用户名或者密码错误*/
	LOGIN_NAME_OR_PASSWORDERROR("000006", "用户名或者密码错误"),
	/**已注册*/
	REGISTERED("000007","已注册"),
	/**网络繁忙，请稍后重试*/
	NO_ACCESS("000009","网络繁忙，请稍后重试"),
	NO_DATA("000010","数据没找到")
    ;
    private ResultMsg(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    private String code;
    private String msg;
    
	public String getCode() {
		return code;
	}
	public String getMsg() {
		return msg;
	}

}
